from math import *


# Gameplay constants
PUCKS_TO_WIN = 5

# Screen constants
SCREEN_WIDTH = 1200
SCREEN_HEIGHT = 825

# Bullet constants
BULLET_RADIUS = 10.0
BULLET_SPEED = 4
BULLET_MASS = 0.2
AMMO_PER_PLAYER = 30

# Player rotation constants
PLAYER_ARM_LENGTH = 20.0
MAX_ROTATION = 80
ROTATION_SPEED = 10
ROTATION_DECAY = .4

# Reload constants
RELOAD_DELAY = 10
RELOAD_RANDOM = .4 #between 0 and 1, fractional randomization in reload delays

# Playing field constants
CIRCLE_BORDER = SCREEN_HEIGHT / 20
CIRCLE_RADIUS = int((SCREEN_HEIGHT-2*CIRCLE_BORDER)/2)
CIRCLE_LEFT = [CIRCLE_BORDER + CIRCLE_RADIUS, CIRCLE_BORDER + CIRCLE_RADIUS]
CIRCLE_RIGHT = [SCREEN_WIDTH - CIRCLE_BORDER - CIRCLE_RADIUS, CIRCLE_BORDER + CIRCLE_RADIUS]
GRAVITY_DIST = CIRCLE_BORDER + 175
GRAVITY_FORCE = .015
WALL_DAMPING = .6
WALL_FRICTION = .07
COLLECTION_WIDTH = 100
MAX_COLLECTION_VELOCITY = 100